import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by pengfei on 16/7/7.
 */
public class Test {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:**/carspring.xml");
        Car car = (Car)ctx.getBean("mycar");

        System.out.println(car);
    }
}
